<!--
 * @Author: your name
 * @Date: 2021-08-18 20:00:40
 * @LastEditTime: 2021-08-18 20:17:13
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_study\src\components\common\backtop\BackTop.vue
-->
<template>
  <div class="backtop" @click="backtop">

  </div>
</template>

<script>
export default {
    name:'BackTop',
    setup(props,{emit}) {
        return{
            backtop:()=>{
                emit('bTop')
            }
        }
    }
}
</script>

<style scoped>
    .backtop{
        width: 40px;
        height: 40px;
        position: fixed;
        bottom: 80px;
        right: 30px;
        z-index: 20;
        box-shadow: 2px 2px 2px #888888;
        border-radius: 50%;
        background: #FCFCFC url('~assets/images/up.png') no-repeat center center;
    }
</style>